package com.baofu.paycore.service.facade.model.refund.req;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * 产品退款策略关联信息对象
 * @author liuting
 * Created by user on 2016/4/27.
 */
@Getter
@Setter
@ToString(callSuper = true)
@NoArgsConstructor
public class RefundProductStrategyAddReqDTO  implements Serializable {
    /**
     * 数据库主键
     */
    private Long id;

    /**
     * 删除标识
     */
    private String usableFlag;
    /**
     * 业务类型
     */
    @NotBlank(message = "业务类型不能为空")
    private String bizType;

    /**
     * 业务产品细类
     */
    @NotBlank(message = "业务产品细类不能为空")
    private String subBizType;

    /**
     * 退款策略Id
     */
    @NotBlank(message = "退款策略Id不能为空")
    private String strategyId;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空")
    @Length(max = 32, message = "创建人长度不能超过32")
    private String createdBy;

}
